package model

//会员数据结构体定义
type Member struct {
	Id           int64   `gorm:"id" json:"id"`
	UserName     string  `gorm:"user_name" json:"user_name"`
	Mobile       string  `gorm:"mobile" json:"mobile"`
	Password     string  `gorm:"password" json:"password"`
	RegisterTime int64   `gorm:"register_time" json:"register_time"`
	Avatar       string  `gorm:"avatar" json:"avatar"`
	Balance      float64 `gorm:"balance" json:"balance"`
	IsActive     int8    `gorm:"is_active" json:"is_active"`
	City         string  `gorm:"city" json:"city"`
}

func (Member) TableName() string {
	return "member"
}
